#include <msp430.h> 


/**
 * main.c
 */
int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer
	P4DIR |= BIT5;
	P4DIR &= ~BIT0;
	P4REN |= BIT0;
	P4OUT |= BIT0;
	P4IES |= BIT0;
	P4IFG &= ~BIT0;
	P4IE |= BIT0;

	__bis_SR_register(GIE);
	
	while(1){};

	return 0;
}

#pragma vector=PORT4_VECTOR
__interrupt void Port_4(void)
{
    P4OUT ^= BIT5;
    P4IFG &= ~BIT0;
}
